package com.neuedu.javase;

/**
 * @auth 金山老师
 * title:   书籍代码
 * creatime: 2022-09-23 8:37
 * 描述 : 流程控制语句的嵌套
 */
public class Operator11ForDouble {
     public static void main(String args[]){

         //        乘法口诀
         //        1*1 = 1
         //        1*2 = 2     2*2 =4
         //        1*3 = 3     2*3 =6  3*3 = 9

//         for (int row = 1; row <= 9; row++) {
//             for (int column = 1; column <=row; column++) {
//                 System.out.print(column+" * "+row+" = "+(column * row)+"\t");
//             }
//             System.out.println();
//         }



         for (int row = 1; row <= 9; row++) {
             if(row == 6){
                 continue;//终止本次循环，进入下一次循环
             }
             for (int column = 1; column <=9; column++) {
                 if(column>row){
                     break;  //终止内部的循环
                 }
                 System.out.print(column+" * "+row+" = "+(column * row)+"\t");
             }
             System.out.println();
         }

     }
}
